package com.example.springboot_test.easyexcel.model.builder;

import com.example.springboot_test.easyexcel.model.CellStyleModel;
import com.example.springboot_test.easyexcel.model.StyleModel;
import lombok.Getter;

/**
 * 样式信息Builder
 *
 * @author xudongmaster
 */
@Getter
public class CellStyleModelBuilder extends CellModelBuilder {
    /**
     * 样式信息
     */
    private final StyleModel styleModel;


    protected CellStyleModelBuilder(String sheetName, int rowIndex, int colIndex, StyleModel styleModel) {
        super(sheetName, rowIndex, colIndex);
        this.styleModel = styleModel;
    }

    public static CellStyleModelBuilder builder(String sheetName, int rowIndex, int colIndex, StyleModel styleModel) {
        return new CellStyleModelBuilder(sheetName, rowIndex, colIndex, styleModel);
    }

    @Override
    public CellStyleModel build() {
        return new CellStyleModel(this);
    }

}
